﻿using System.Xml.XPath;

namespace Songhay.Data.GenericWeb.OutputDefinitions
{
    using Songhay.Xml;

    /// <summary>
    /// Output procedures from the DBMS
    /// for <see cref="System.Xml.XPath.IXPathNavigable"/> types.
    /// </summary>
    public static partial class XPathNavigableOutput
    {
        /// <summary>
        /// Gets the delete message.
        /// </summary>
        /// <param name="identifier">The identifier.</param>
        /// <param name="entityName">Name of the entity.</param>
        /// <returns>Returns <see cref="System.Xml.XPath.XPathDocument"/>.</returns>
        public static XPathDocument GetDeleteMessage(int? identifier, string entityName)
        {
            string[] sa = new string[] { string.Format("{0} {1} has been removed.", entityName, identifier) };
            XPathDocument d = XmlUtility.GetInternalMessageDocument("Item Deleted from the Database", sa);
            return d;
        }
    }
}
